<?php if($admin_login_status) { ?><script type="text/javascript">function delete_single_list(id){if(confirm('你确认要删除该文章?')){$.post('<?php echo $this->create_url('admin_article/ajax_delete_article'); ?>', {mode:0,list_id:id}, function(data){switch(data){case '101':alert('删除成功!');location.reload();break; case '100':alert('对不起!操作失败,请重新操作');break;default:alert(data);}});}else{return false;}}</script><?php } ?>
<?php echo $pagelist_css; ?>
<?php $this->widget('sub_menu'); ?>

aaaaaaaaaa
<table width="760" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left">
	<?php if($list_data) { foreach($list_data as $lines) {?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;">
      <tr>
        <td height="30" align="left">&nbsp;<a href="<?php echo $this->get_action_url('article'); ?>/?id=<?php echo $lines['id']; ?>"><?php echo $lines['title']; ?></a></td>
      </tr>
      <tr>
        <td height="20" align="left" style="font-size:12px; line-height:20px; color:#666666;">&nbsp;作者：<?php echo $lines['author']; ?> &nbsp;发表时间：<?php echo $lines['time']; ?></td>
      </tr>
      <tr>
        <td align="left"><div style="font-size:12px; line-height:20px; margin-top:10px; margin-bottom:20px;"><?php echo $lines['content']; ?></div></td>
      </tr>
      <tr style="font-size:12px; line-height:20px; color:#999999;">
        <td height="20" align="left">分类：<?php echo $lines['class']; ?>&nbsp;标签：<?php echo $lines['tag']; ?>&nbsp;评论：<?php echo $lines['comment']; ?>&nbsp;<?php if($admin_login_status) { ?><a href="<?php echo $this->create_url('admin_article/ajax_tb_edit_article'); ?>/?id=<?php echo $lines['id']; ?>">编辑</a>&nbsp;<a href="javascript:void(0);" onclick="delete_single_list(<?php echo $lines['id']; ?>)">删除</a><?php } ?></td>
      </tr>
    </table>
	<?php } } else {?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="center">暂没有文章</td>
  </tr>
</table>
	<?php } ?>
	</td>
  </tr>
  <tr>
    <td height="30" align="left"><?php if($list_data) { echo $pagelist_html; } ?></td>
  </tr>
</table>